package com.weme.common.socket.base

import org.java_websocket.handshake.ServerHandshake
import java.lang.Exception

/**
 *  用户处理长链接的类
 *
 *  @author 
 */
interface HandlerAdapter {
    fun onOpen(handshakedata: ServerHandshake?)

    fun onMessage(message: String?)

    fun onMessage(msg: Any?)

    fun onClose(code: Int, reason: String?, remote: Boolean)

    fun onError(ex: Exception?)
}